export default class Singleton {
    private static _instance: any = null;

    // static 静态全局共有，可以直接调用，相当于创建一个全局的单例
    static getInstance<T>(): T {
        if (this._instance === null) this._instance = new this();
        return this._instance;
    }
};
